<?php
/**
 * Created by PhpStorm.
 * User: mac
 * Date: 2018/6/21
 * Time: 17:59
 */

namespace app\common\model;


use think\Model;

class Books extends Model
{
    public function getHotBooks(){
        $where = array(
            'status' => 1
        );
        $books = $this->where($where)->select();
        return $books;
    }
}